<template>
  <div class="ui attached pointing menu">
    <div class="ui container">
      <div class="right menu">
        <router-link tag="a" :to="{name:toPath[0],params: {flag:flag}}" class="item">{{text[0]}}</router-link>
        <router-link tag="a" :to="{name:toPath[1],params: {flag:flag}}" class="item">{{text[1]}}</router-link>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "CommonMenu",
    props: {
      toPath: {
        type: Array,
      },
      flag: Number,
      text: {
        type: Array
      }
    }
  }
</script>

<style scoped>

</style>
